/**
 * @file
 * Tests for string vertex edge class.
 */

#include <gtest/gtest.h>

#include "string_vertex_edge.h"

TEST(StringVertexEdgeTest, FullTest)
{
  StringVertexEdge *d1 = new StringVertexEdge(1,"a");
  StringVertexEdge *d2 = new StringVertexEdge(2,"a");
  StringVertexEdge *d3 = new StringVertexEdge(3,"c");
  StringVertexEdge *d4 = new StringVertexEdge(3,"b");
  StringVertexEdge *d5 = new StringVertexEdge(3,"c");

  EXPECT_TRUE(*d1 == *d2);
  EXPECT_TRUE(*d3 == *d5);
  EXPECT_FALSE(*d1 == *d3);
  EXPECT_FALSE(*d4 == *d3);

  EXPECT_TRUE(d1->get_int_value() == 1);
  EXPECT_TRUE(d2->get_int_value() == 1);
  EXPECT_TRUE(d3->get_int_value() == 2); 
  EXPECT_TRUE(d4->get_int_value() == 3); 
  EXPECT_TRUE(d5->get_int_value() == 2); 
}


